import { h } from 'vue'
import * as scriptUrl from '@/assets/js/iconfont.js'
import { createFromIconfontCN } from '@ant-design/icons-vue'

const IconFont = createFromIconfontCN({
  scriptUrl: scriptUrl,
})

export const icon = {
  HomeOutlined: () =>
    h('span', { class: 'icon-zdy' }, [
      // 未选中图标
      h(IconFont, {
        type: 'icon-home2',
        class: 'icon-cur icon-cur1',
      }),
      // 选中图标
      h(IconFont, { type: 'icon-index-hover', class: 'icon-cur icon-cur2' }),
    ]),
  SettingOutlined: () =>
    h('span', { class: 'icon-zdy' }, [
      h(IconFont, {
        type: 'icon-baogaodan1',
        class: 'icon-cur icon-cur1',
      }),
      h(IconFont, { type: 'icon-baogaodan', class: 'icon-cur icon-cur2' }),
    ]),
}
